package com.feisuanyz.dto;

import jakarta.validation.constraints.*;
import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class TicketQuery {

    private Integer ticketId;

    @NotNull(message = "关联的事件ID不能为空")
    private Integer eventId;

    @NotNull(message = "可用票数不能为空")
    @Positive(message = "可用票数必须大于0")
    private Integer availableTickets;

    @NotNull(message = "剩余票数不能为空")
    @Positive(message = "剩余票数必须大于0")
    private Integer remainingTickets;

    @NotNull(message = "创建人不能为空")
    private Integer createBy;

    private Integer updateBy;
}